<?php

namespace Database\Seeders;

use App\Models\SystemAdmin;

use Illuminate\Database\Seeder;

use Spatie\Permission\Models\Permission;
use Spatie\Permission\Models\Role;

class PermissionSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        app()['cache']->forget('spatie.permission.cache');

       //添加权限
        $permissions = [

                [
                'cn_name' => '商品管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [
                        [
                        'cn_name' => '商品列表',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '商品的列表',
                                'name' => 'product.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/product',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品的添加',
                                'name' => 'product.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/product',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品的详情',
                                'name' => 'product.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/product/{product}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品的更新',
                                'name' => 'product.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/product/{product}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品的删除',
                                'name' => 'product.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/product/{product}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '获取头部标签以及数量',
                                'name' => '',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/product/get_header',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品批量状态修改',
                                'name' => 'product.updateBatchStatus',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/product/{product}/batch_status',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '从回收站恢复商品',
                                'name' => 'product.restore',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/product/{product}/restore',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ],
                        ],[

                         'cn_name' => '商品分类',
                         'name' => '',
                         'routename' => '',
                         'interfacepath' => '',
                         'level' => 2,
                        'guard_name' => 'admin',
                         'children' => [
                                   [
                                       'cn_name' => '商品分类的列表',
                                       'name' => 'product_category.index',
                                       'mode' => 'GET',
                                       'routename' => '',
                                       'interfacepath' => '/admin/product_category',
                                       'level' => 3,
                                       'guard_name' => 'admin',
                                   ],[
                                       'cn_name' => '商品分类的添加',
                                       'name' => 'product_category.index.store',
                                       'mode' => 'POST',
                                       'routename' => '',
                                       'interfacepath' => '/admin/product_category',
                                       'level' => 3,
                                        'guard_name' => 'admin',
                                   ],[
                                       'cn_name' => '商品分类的详情',
                                       'name' => 'product_category.show',
                                       'mode' => 'GET',
                                       'routename' => '',
                                       'interfacepath' => '/admin/product_category/{product_category}',
                                       'level' => 3,
                                        'guard_name' => 'admin',
                                   ],[
                                       'cn_name' => '商品分类的更新',
                                       'name' => 'product_category.update',
                                       'mode' => 'PUT',
                                       'routename' => '',
                                       'interfacepath' => '/admin/product_category/{product_category}',
                                       'level' => 3,
                                        'guard_name' => 'admin',
                                   ],[
                                       'cn_name' => '商品分类的删除',
                                       'name' => 'product_category.destroy',
                                       'mode' => 'DELETE',
                                       'routename' => '',
                                       'interfacepath' => '/admin/product_category/{product_category}',
                                       'level' => 3,
                                        'guard_name' => 'admin',
                                   ]
                               ]
                        ],[
                        'cn_name' => '商品规格',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '商品规格模板列表',
                                'name' => 'product_rule.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/product_rule',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品规格模板的添加',
                                'name' => 'product_rule.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/product_rule',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品规格模板的更新',
                                'name' => 'product_rule.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/product_rule/{product_rule}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品规格模板的删除',
                                'name' => 'product_rule.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/product_rule/{product_rule}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '商品评论',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '商品评论列表',
                                'name' => 'product_reply.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/product_reply',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品评论的添加',
                                'name' => 'product_reply.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/product_reply',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品评论的更新',
                                'name' => 'product_reply.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/product_reply/{product_reply}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品评论的删除',
                                'name' => 'product_reply.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/product_reply/{product_reply}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],
                    ]
                    ],[
                'cn_name' => '订单管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [
                        [
                            'cn_name' => '订单列表',
                            'name' => '',
                            'routename' => '',
                            'level' => 2,
                            'guard_name' => 'admin',
                            'children' => [
                                [
                                    'cn_name' => '订单的列表',
                                    'name' => 'order.index',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/order',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单的添加',
                                    'name' => 'order.store',
                                    'mode' => 'POST',
                                    'interfacepath' => '/admin/order',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单的详情',
                                    'name' => 'order.show',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/order/{order}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单的删除',
                                    'name' => 'order.destroy',
                                    'mode' => 'DELETE',
                                    'interfacepath' => '/admin/order/{order}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单备注路由',
                                    'name' => 'order.remark',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/order/{order}/remark',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单管理员备注修改路由',
                                    'name' => 'order.remark',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/order/{order}/remark',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单发货路由',
                                    'name' => 'order.send',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/order/{order}/send',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单核销路由',
                                    'name' => 'order.checked',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/order/{order}/checked',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单配送路由',
                                    'name' => 'order.delivery',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/order/{order}/delivery',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单收货路由',
                                    'name' => 'order.receive',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/order/{order}/receive',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单批量处理的列表',
                                    'name' => 'batch.index',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/batch',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单批量处理的添加',
                                    'name' => 'batch.store',
                                    'mode' => 'POST',
                                    'interfacepath' => '/admin/batch',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单批量处理的详情',
                                    'name' => 'batch.show',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/batch/{batch}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单批量处理的删除',
                                    'name' => 'batch.destroy',
                                    'mode' => 'DELETE',
                                    'interfacepath' => '/admin/batch/{batch}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],
                            ],
                        ],[

                        'cn_name' => '收银订单',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '收银订单路由',
                                'name' => 'cash',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/cash',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],
                        ]
                    ],[
                        'cn_name' => '售后退款',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '退款订单路由',
                                'name' => 'refund',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/refund',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '立即退款路由',
                                'name' => 'order.refund',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/order/{order}/refund',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '拒绝退款路由',
                                'name' => 'order.refuse',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/order/{order}/refuse',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ]
                ]
                ],[
                'cn_name' => '用户管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'children' => [
                        [
                            'cn_name' => '用户列表',
                            'name' => '',
                            'routename' => '',
                            'interfacepath' => '',
                            'level' => 2,
                            'guard_name' => 'admin',
                            'children' => [
                                [
                                    'cn_name' => '用户的列表',
                                    'name' => 'users.index',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/users',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '用户的添加',
                                    'name' => 'users.store',
                                    'mode' => 'POST',
                                    'interfacepath' => '/admin/users',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '用户的详情',
                                    'name' => 'users.show',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/users/{user}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '获取用户账户详情',
                                    'name' => 'user.order',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user/details/{user}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '获取用户消费记录',
                                    'name' => 'user.recordsconsumption',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user/recordsconsumption/{user}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '获取用户签到记录',
                                    'name' => 'user.signs',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user/usersigns/{user}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '获取用户拥有的优惠券',
                                    'name' => 'user.coupon',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user/usercoupon/{user}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '获取用户拥有的优惠券',
                                    'name' => 'user.balance',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user/userbalance/{user}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '获取用户拥有的好友',
                                    'name' => 'user.friend',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user/userfriend/{user}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '设置用户的积分和余额',
                                    'name' => 'set.integral',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user/setintegral/{user}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '设置用户的积分和余额',
                                    'name' => 'gift.member',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/user/giftmember/{user}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ]
                            ],
                        ],[

                        'cn_name' => '用户分组',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '用户分组的列表',
                                'name' => 'group.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/user/group',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户分组的添加',
                                'name' => 'group.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/user/group',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户分组的详情',
                                'name' => 'group.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/user/group/{group}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户分组的更改',
                                'name' => 'group.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/group/{group}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户分组的删除',
                                'name' => 'group.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/user/group/{group}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '批量设置用户分组',
                                'name' => 'set.group',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/set_group',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改用户分组',
                                'name' => 'get.group',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/getgroup/{user}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '用户标签',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '管理用户标签的列表',
                                'name' => 'lable.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签的添加',
                                'name' => 'lable.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签的详情',
                                'name' => 'lable.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable/{lable}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签的更改',
                                'name' => 'lable.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable/{lable}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签的删除',
                                'name' => 'lable.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable/{lable}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的列表',
                                'name' => 'lable_category.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable_category',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的添加',
                                'name' => 'lable_category.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable_category',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的详情',
                                'name' => 'lable_category.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable_category/{lable_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的更改',
                                'name' => 'lable_category.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable_category/{lable_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的删除',
                                'name' => 'lable_category.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/user/lable_category/{lable_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '批量设置用户标签',
                                'name' => 'set.label',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/set_label',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改用户标签',
                                'name' => 'get.lable',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/getlable/{user}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '设置用户的推广员',
                                'name' => 'get.promoter',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/getpromoter/{user}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '用户等级',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '管理用户等级的列表',
                                'name' => 'level.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/user/level',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户等级的添加',
                                'name' => 'level.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/user/level',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户等级的详情',
                                'name' => 'level.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/user/level/{level}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户等级的更改',
                                'name' => 'level.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/level/{level}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户等级的删除',
                                'name' => 'level.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/user/level/{level}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '设置会员等级状态',
                                'name' => 'level.status',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/user/level/status/{id}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '付费会员',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '会员卡的列表',
                                'name' => 'membercards.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/membercards',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员卡的添加',
                                'name' => 'membercards.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/membercards',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员卡的详情',
                                'name' => 'membercards.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/membercards/{membercards}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员卡的更改',
                                'name' => 'membercards.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/membercards/{membercards}',
                                'level' => 3,
                            ],[
                                'cn_name' => '会员卡的删除',
                                'name' => 'membercards.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/membercards/{membercards}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员卡批次表的列表',
                                'name' => 'membercardbatchs.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/membercardbatchs',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员卡批次表的添加',
                                'name' => 'membercardbatchs.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/membercardbatchs',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员卡批次表的详情',
                                'name' => 'membercardbatchs.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/membercardbatchs/{membercardbatchs}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员卡批次表的更改',
                                'name' => 'membercardbatchs.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/membercardbatchs/{membercardbatchs}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员卡批次表的删除',
                                'name' => 'membercardbatchs.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/membercardbatchs/{membercardbatchs}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员权益的列表',
                                'name' => 'memberRights.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/memberRights',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员权益的添加',
                                'name' => 'memberRights.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/memberRights',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员权益的详情',
                                'name' => 'memberRights.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/memberRights/{memberRights}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员权益的更改',
                                'name' => 'memberRights.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/memberRights/{memberRights}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员权益的删除',
                                'name' => 'memberRights.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/memberRights/{memberRights}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员类型的列表',
                                'name' => 'memberShips.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/memberShips',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员类型的添加',
                                'name' => 'memberShips.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/memberShips',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员类型的详情',
                                'name' => 'memberShips.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/memberShips/{memberShips}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员类型的更改',
                                'name' => 'memberShips.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/memberShips/{memberShips}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员类型的删除',
                                'name' => 'memberShips.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/memberShips/{memberShips}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员购买记录的列表',
                                'name' => 'otherOrders.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/otherOrders',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员购买记录的添加',
                                'name' => 'otherOrders.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/otherOrders',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员购买记录的详情',
                                'name' => 'otherOrders.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/otherOrders/{otherOrders}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员购买记录的更改',
                                'name' => 'otherOrders.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/otherOrders/{otherOrders}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '会员购买记录的删除',
                                'name' => 'otherOrders.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/otherOrders/{otherOrders}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],
                        ]
                    ]
                ]
            ],[
                'cn_name' => '分销管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [
                        [
                        'cn_name' => '分销设置',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                                [
                                    'cn_name' => '分销设置',
                                    'name' => 'promSet',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/PromoterSet',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],
                            ],
                        ],[

                        'cn_name' => '分销员管理',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '分销员管理头部',
                                'name' => 'promotersList.top',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/promotersList/top',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '分销员列表显示',
                                'name' => 'promotersList',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/promotersList',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '推广员列表',
                                'name' => 'promoters',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/promoters',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '推广人订单',
                                'name' => 'promoterOrder',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/promoterOrder',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改上级推广人',
                                'name' => 'PromoterUpdate',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/PromoterUpdate/{user}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '清除上级推广人',
                                'name' => 'EliminatePromoter',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/EliminatePromoter/{user}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '取消推广资格',
                                'name' => 'CancelPromoter',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/CancelPromoter/{user}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '分销登记表的列表',
                                'name' => 'promoterlevel.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/promoterlevel',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '分销登记表的添加',
                                'name' => 'promoterlevel.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/promoterlevel',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '分销登记表的详情',
                                'name' => 'promoterlevel.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/promoterlevel/{promoterlevel}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '分销登记表的更改',
                                'name' => 'promoterlevel.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/promoterlevel/{promoterlevel}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '分销登记表的删除',
                                'name' => 'promoterlevel.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/promoterlevel/{promoterlevel}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '公众号推广二维码',
                                'name' => 'wechatCode',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/wechatCode',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '小程序二维码',
                                'name' => 'miniCode',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/miniCode',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '分销等级',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '任务等级的列表',
                                'name' => 'tasklevels.index',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/tasklevels',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '任务等级的添加',
                                'name' => 'tasklevels.store',
                                'mode' => 'POST',
                                'routename' => '',
                                'interfacepath' => '/admin/tasklevels',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '任务等级的详情',
                                'name' => 'tasklevels.show',
                                'mode' => 'GET',
                                'routename' => '',
                                'interfacepath' => '/admin/tasklevels/{tasklevels}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '任务等级的更改',
                                'name' => 'tasklevels.update',
                                'mode' => 'PUT',
                                'routename' => '',
                                'interfacepath' => '/admin/tasklevels/{tasklevels}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '任务等级的删除',
                                'name' => 'tasklevels.destroy',
                                'mode' => 'DELETE',
                                'routename' => '',
                                'interfacepath' => '/admin/tasklevels/{tasklevels}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ]
                ]
            ],[
                'cn_name' => '客服管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [
                        [
                            'cn_name' => '客服列表',
                            'name' => '',
                            'routename' => '',
                            'level' => 2,
                            'guard_name' => 'admin',
                            //'children' => [],
                        ],[

                        'cn_name' => '客服话术',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '客服话术的列表',
                                'name' => 'storeservicespeechcrafts.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/storeservicespeechcrafts',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服话术的添加',
                                'name' => 'storeservicespeechcrafts.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/storeservicespeechcrafts',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服话术的详情',
                                'name' => 'storeservicespeechcrafts.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/storeservicespeechcrafts/{storeservicespeechcrafts}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服话术的更改',
                                'name' => 'storeservicespeechcrafts.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/storeservicespeechcrafts/{storeservicespeechcrafts}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服话术的删除',
                                'name' => 'storeservicespeechcrafts.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/storeservicespeechcrafts/{storeservicespeechcrafts}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服话术分类的列表',
                                'name' => 'feedback_category.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/feedback_category',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服话术分类的添加',
                                'name' => 'feedback_category.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/feedback_category',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服话术分类的详情',
                                'name' => 'feedback_category.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/feedback_category/{feedback_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服话术分类的更改',
                                'name' => 'feedback_category.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/feedback_category/{feedback_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服话术分类的删除',
                                'name' => 'feedback_category.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/feedback_category/{feedback_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],
                        ]
                    ],[
                        'cn_name' => '客服反馈',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '客服反馈的列表',
                                'name' => 'toreservicefeedback.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/toreservicefeedback',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服反馈的添加',
                                'name' => 'toreservicefeedback.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/toreservicefeedback',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服反馈的详情',
                                'name' => 'toreservicefeedback.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/toreservicefeedback/{toreservicefeedback}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服反馈的更改',
                                'name' => 'toreservicefeedback.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/toreservicefeedback/{toreservicefeedback}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服反馈的删除',
                                'name' => 'toreservicefeedback.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/toreservicefeedback/{toreservicefeedback}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '客服反馈的状态',
                                'name' => 'toreservicefeedback.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/toreservicefeedback/status/{toreservicefeedback}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '留言时间',
                                'name' => 'toreservicefeedback.index',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/index',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],
                             ]
                    ],
                ]
            ],[
                'cn_name' => '营销管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [
                        [
                        'cn_name' => '优惠劵',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '优惠券的列表',
                                'name' => 'coupon.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/coupon',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '优惠券的添加',
                                'name' => 'coupon.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/coupon',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '优惠券的详情',
                                'name' => 'coupon.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/coupon/{coupon}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '优惠券的更改',
                                'name' => 'coupon.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/coupon/{coupon}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '优惠券的删除',
                                'name' => 'coupon.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/coupon/{coupon}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '优惠券修改状态',
                                'name' => 'coupon.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/coupon/status/{coupon}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '查看优惠券的领取记录',
                                'name' => 'coupon.receive',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/coupon/receive/{coupon}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '查看用户领取记录',
                                'name' => 'user.collection',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/user/collection',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ],
                        ],[
                        'cn_name' => '砍价管理',
                        'name' => '',
                        'routename' => '',
                        'interfacepath' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '商品砍价的列表',
                                'name' => 'bargain.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/bargain',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品砍价的添加',
                                'name' => 'bargain.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/bargain',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品砍价的详情',
                                'name' => 'bargain.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/bargain/{bargain}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品砍价的更改',
                                'name' => 'bargain.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/bargain/{bargain}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品砍价的删除',
                                'name' => 'bargain.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/bargain/{bargain}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '砍价商品是否上架',
                                'name' => 'bargain.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/bargain/{storeBargain}/status',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '砍价用户表',
                                'name' => 'bargain_user.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/bargain_user',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '砍价用户表详情',
                                'name' => 'bargain_user.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/bargain_user/{id}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品积分的列表',
                                'name' => 'integral.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/integral',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品积分的详情',
                                'name' => 'integral.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/integral/{integral}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品积分的添加',
                                'name' => 'integral.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/integral',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品积分的修改',
                                'name' => 'integral.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/integral/{integral}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品积分的删除',
                                'name' => 'integral.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/integral/{integral}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '积分商品是否上架',
                                'name' => 'integral.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/integral/{integral}/status',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '拼团管理',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '商品拼团的列表',
                                'name' => 'combination.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/combination',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品拼团的添加',
                                'name' => 'combination.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/combination',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品拼团的详情',
                                'name' => 'combination.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/combination/{combination}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品拼团的更改',
                                'name' => 'combination.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/combination/{combination}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品拼团的删除',
                                'name' => 'combination.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/combination/{combination}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '拼团商品是否上架',
                                'name' => 'combination.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/combination/{storeCombination}/status',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '拼团用户表',
                                'name' => 'pink.index',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/pink',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '拼团用户表详情',
                                'name' => 'pink_user.show',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/pink/{id}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '秒杀管理',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '商品秒杀的列表',
                                'name' => 'seckill.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/seckill',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品秒杀的添加',
                                'name' => 'seckill.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/seckill',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品秒杀的详情',
                                'name' => 'seckill.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/seckill/{seckill}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品秒杀的更改',
                                'name' => 'seckill.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/seckill/{seckill}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '商品秒杀的删除',
                                'name' => 'seckill.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/seckill/{seckill}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '秒杀商品是否上架',
                                'name' => 'seckill.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/seckill/{storeSeckill}/status',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '秒杀商品是否上架',
                                'name' => 'seckill_user.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/seckill_user',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '秒杀商品是否上架',
                                'name' => 'seckill_user.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/seckill_user/{id}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '积分管理',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        //'children' => []
                    ],[
                        'cn_name' => '直播管理',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        //'children' => []
                    ]
                ]
            ],[
                'cn_name' => '财务管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [

                        [
                            'cn_name' => '财务操作',
                            'name' => '',
                            'routename' => '',
                            'level' => 2,
                            'guard_name' => 'admin',
                            'children' => [
                                [
                                    'cn_name' => '提现记录列表',
                                    'name' => '',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user_extract',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '编辑提现记录',
                                    'name' => '',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/adminuser_extract/{id}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '状态通过',
                                    'name' => '',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user_extract/{user_extract}/adopt',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '状态无效',
                                    'name' => '',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user_extract/{user_extract}/invalid',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '发票列表',
                                    'name' => 'user.recordsconsumption',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user_invoice',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '订单详情',
                                    'name' => 'user.recordsconsumption',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user_invoice/{id}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '充值记录列表',
                                    'name' => '',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user_recharges',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '充值删除',
                                    'name' => '',
                                    'mode' => 'DELETE',
                                    'interfacepath' => '/admin/user_recharges/{id}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '资金记录表',
                                    'name' => 'user_bills',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/user_bills',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '佣金记录表',
                                    'name' => 'user_bills',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/brokerage_frozen',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ]
                            ],
                        ],[

                        'cn_name' => '用户分组',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '用户分组的列表',
                                'name' => 'group.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/user/group',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户分组的添加',
                                'name' => 'group.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/user/group',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户分组的详情',
                                'name' => 'group.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/user/group/{group}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户分组的更改',
                                'name' => 'group.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/group/{group}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户分组的删除',
                                'name' => 'group.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/user/group/{group}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '批量设置用户分组',
                                'name' => 'set.group',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/set_group',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改用户分组',
                                'name' => 'get.group',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/getgroup/{user}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '用户标签',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '管理用户标签的列表',
                                'name' => 'lable.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/user/lable',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签的添加',
                                'name' => 'lable.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/user/lable',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签的详情',
                                'name' => 'lable.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/user/lable/{lable}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签的更改',
                                'name' => 'lable.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/lable/{lable}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签的删除',
                                'name' => 'lable.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/user/lable/{lable}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的列表',
                                'name' => 'lable_category.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/user/lable_category',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的添加',
                                'name' => 'lable_category.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/user/lable_category',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的详情',
                                'name' => 'lable_category.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/user/lable_category/{lable_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的更改',
                                'name' => 'lable_category.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/lable_category/{lable_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户标签分类的删除',
                                'name' => 'lable_category.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/user/lable_category/{lable_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '批量设置用户标签',
                                'name' => 'set.label',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/set_label',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改用户标签',
                                'name' => 'get.lable',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/getlable/{user}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '设置用户的推广员',
                                'name' => 'get.promoter',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/getpromoter/{user}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '用户等级',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '管理用户等级的列表',
                                'name' => 'level.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/user/level',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户等级的添加',
                                'name' => 'level.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/user/level',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户等级的详情',
                                'name' => 'level.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/user/level/{level}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户等级的更改',
                                'name' => 'level.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/level/{level}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理用户等级的删除',
                                'name' => 'level.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/user/level/{level}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '设置会员等级状态',
                                'name' => 'level.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/user/level/status/{id}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ]
                ]
            ],[
                'cn_name' => '内容管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [

                        [
                            'cn_name' => '文章管理',
                            'name' => '',
                            'routename' => '',
                            'level' => 2,
                            'guard_name' => 'admin',
                            'children' => [
                                [
                                    'cn_name' => '文章的列表',
                                    'name' => 'article.index',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/article',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '文章的添加',
                                    'name' => 'article.store',
                                    'mode' => 'POST',
                                    'interfacepath' => '/admin/article',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '文章的详情',
                                    'name' => 'article.show',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/article/{article}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '文章的更改',
                                    'name' => 'article.update',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/article/{article}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '文章的删除',
                                    'name' => 'article.destroy',
                                    'mode' => 'DELETE',
                                    'interfacepath' => '/admin/article/{article}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '文章所关联的商品',
                                    'name' => 'article.relation',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/relation/{article}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '文章所关联的商品',
                                    'name' => 'article.unrelation',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/unrelation/{article}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '文章管理的状态',
                                    'name' => 'article.status',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/article/status/{article}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ]
                            ],
                        ],[

                        'cn_name' => '文章分类管理',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '文章分类的列表',
                                'name' => 'article_category.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/article_category',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '文章分类的添加',
                                'name' => 'article_category.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/article_category',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '文章分类的详情',
                                'name' => 'article_category.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/article_category/{article_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '文章分类的更改',
                                'name' => 'article_category.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/article_category/{article_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '文章分类的删除',
                                'name' => 'article_category.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/article_category/{article_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '文章分类的状态',
                                'name' => 'article_category.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/article_category/status/{article_category}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],
                ]
            ],[
                'cn_name' => '页面管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                //'children' => [],
                ],[
                'cn_name' => '统计管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [
                        [
                    'cn_name' => '商品统计',
                    'name' => '',
                    'routename' => '',
                    'level' => 2,
                    'guard_name' => 'admin',
                    'children' => [
                        [
                        'cn_name' => '商品统计的列表',
                        'name' => 'product_log.productlog',
                        'mode' => 'GET',
                        'interfacepath' => '/admin/product_log',
                        'level' => 3,
                        'guard_name' => 'admin',
                        ],[
                            'cn_name' => '商品统计的头部',
                            'name' => 'product_log.top',
                            'mode' => 'GET',
                            'interfacepath' => '/admin/product_log/top',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],[
                            'cn_name' => '环比增长1',
                            'name' => 'product_log.growth',
                            'mode' => 'GET',
                            'interfacepath' => '/admin/growth',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],[
                            'cn_name' => '折线图1',
                            'name' => 'product_log.graphical',
                            'mode' => 'GET',
                            'interfacepath' => '/admin/graphical',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ]
                    ],
                        ],[
                     'cn_name' => '用户统计',
                     'name' => '',
                     'routename' => '',
                     'level' => 2,
                     'guard_name' => 'admin',
                     'children' => [
                            [
                                'cn_name' => '用户统计的列表',
                                'name' => 'statistics.usertop',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/usertop',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户性别比例',
                                'name' => 'user.sex',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/sex',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '用户地域分布人数',
                                'name' => 'addresses',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/addresses',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                             'cn_name' => '环比增长2',
                             'name' => 'user_log.growth',
                             'mode' => 'GET',
                             'interfacepath' => '/admin/growth/top',
                             'level' => 3,
                             'guard_name' => 'admin',
                         ],[
                             'cn_name' => '折线图2',
                             'name' => 'user_log.chart',
                             'mode' => 'GET',
                             'interfacepath' => '/admin/chart',
                             'level' => 3,
                             'guard_name' => 'admin',
                         ]
                        ],
                    ],[
                    'cn_name' => '财务统计',
                    'name' => '',
                    'routename' => '',
                    'level' => 2,
                    'guard_name' => 'admin',
                    'children' => [
                            [
                                'cn_name' => '交易统计表',
                                'name' => 'finance.top',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/finance',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                            'cn_name' => '环比增长3',
                            'name' => 'finance.growth',
                            'mode' => 'GET',
                            'interfacepath' => '/admin/growth/finance',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],[
                            'cn_name' => '折线图3',
                            'name' => 'finance.chart',
                            'mode' => 'GET',
                            'interfacepath' => '/admin/chart/finance',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],
                        ],
                    ]
                ],
                ],[
                'cn_name' => '设置管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [
                        [
                            'cn_name' => '系统设置',
                            'name' => '',
                            'routename' => '',
                            'level' => 2,
                            'guard_name' => 'admin',
                            'children' => [
                                [
                                    'cn_name' => '系统配置的列表',
                                    'name' => 'index.index',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/config/{config}/index',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '系统配置的添加',
                                    'name' => 'index.store',
                                    'mode' => 'POST',
                                    'interfacepath' => '/admin/config/{config}/index',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '系统配置的更改',
                                    'name' => 'index.update',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/config/{config}/index/{index}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '角色管理的删除',
                                    'name' => 'index.destroy',
                                    'mode' => 'DELETE',
                                    'interfacepath' => '/admin/config/{config}/index/{index}',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '排序',
                                    'name' => 'config.sort',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/config/{config}/sort',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '配置的禁用和使用',
                                    'name' => 'config.status',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/config/{config}/status',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '是否显示',
                                    'name' => 'config.table.show',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/config/table/{table}/show',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '配置的禁用和使用',
                                    'name' => 'config.table.index',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/config/table/{table}/status',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '支付相关',
                                    'name' => 'orders.pay',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/orders/pay',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '允许查询订单状态',
                                    'name' => 'orders.status',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/orders/status',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '支付宝支付成功之后的回调',
                                    'name' => 'pay.notify.aliyun',
                                    'mode' => 'ANY',
                                    'interfacepath' => '/admin/pay/notify/aliyun',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '微信支付成功之后的回调',
                                    'name' => 'pay.notify.wechat',
                                    'mode' => 'ANY',
                                    'interfacepath' => '/admin/pay/notify/wechat',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '系统设置获取头部标签',
                                    'name' => 'system.get_system_header',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/get_system_header',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '系统设置列表',
                                    'name' => 'system_settings.index',
                                    'mode' => 'GET',
                                    'interfacepath' => '/admin/system_settings',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ],[
                                    'cn_name' => '系统设置提交修改',
                                    'name' => 'system_settings.update',
                                    'mode' => 'PUT',
                                    'interfacepath' => '/admin/system_settings',
                                    'level' => 3,
                                    'guard_name' => 'admin',
                                ]
                            ],
                        ],[

                        'cn_name' => '一号通',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        //'children' => []
                    ],[
                        'cn_name' => '管理权限',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '角色管理的列表',
                                'name' => 'role.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/role',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '角色管理的添加',
                                'name' => 'role.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/role',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '角色管理的详情',
                                'name' => 'role.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/role/{role}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '角色管理的更改',
                                'name' => 'role.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/role/{role}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '角色管理的删除',
                                'name' => 'role.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/role/{role}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '角色管理的状态',
                                'name' => 'role.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/role/status/{role}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理员的列表',
                                'name' => 'systemadmin.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/systemadmin',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理员的添加',
                                'name' => 'systemadmin.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/systemadmin',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理员的详情',
                                'name' => 'systemadmin.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/systemadmin/{systemadmin}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理员的更改',
                                'name' => 'role.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/systemadmin/{systemadmin}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理员的删除',
                                'name' => 'role.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/systemadmin/{systemadmin}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '管理员的状态',
                                'name' => 'systemadmin.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/systemadmin/status/{systemadmin}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '权限规则的列表',
                                'name' => 'permission.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/permission',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '权限规则的添加',
                                'name' => 'permission.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/permission',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '权限规则的详情',
                                'name' => 'permission.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/permission/{permission}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '权限规则的更改',
                                'name' => 'permission.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/permission/{permission}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '权限规则的删除',
                                'name' => 'permission.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/permission/{permission}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '权限规则的状态',
                                'name' => 'permission.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/permission/status/{permission}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '发货设置',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '配送员的列表',
                                'name' => 'deliveryservice.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/deliveryservice',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '配送员的添加',
                                'name' => 'deliveryservice.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/deliveryservice',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '配送员的详情',
                                'name' => 'deliveryservice.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/deliveryservice/{deliveryservice}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '配送员的更改',
                                'name' => 'deliveryservice.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/deliveryservice/{deliveryservice}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '配送员的删除',
                                'name' => 'deliveryservice.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/deliveryservice/{deliveryservice}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '消息管理',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '微信模板消息的列表',
                                'name' => 'system_wechat_messages.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/system_wechat_messages ',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '微信模板消息的添加',
                                'name' => 'system_wechat_messages.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/system_wechat_messages',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '微信模板消息的详情',
                                'name' => 'system_wechat_messages.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/system_wechat_messages/{system_wechat_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '微信模板消息的删除',
                                'name' => 'system_wechat_messages.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/system_wechat_messages/{system_wechat_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改',
                                'name' => 'system_wechat_messages.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/system_wechat_messages/{system_wechat_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改状态',
                                'name' => 'system_wechat_messages.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/system_wechat_messages/{system_wechat_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '详情',
                                'name' => 'system_wechat_messages.show1',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/system_wechat_messages/{system_wechat_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '订阅消息的列表',
                                'name' => 'system_subscription_messages.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/system_subscription_messages',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '订阅消息的详情',
                                'name' => 'system_subscription_messages.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/system_subscription_messages/{system_subscription_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '订阅消息的添加',
                                'name' => 'system_subscription_messages.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/system_subscription_messages',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '订阅消息的删除',
                                'name' => 'system_subscription_messages.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/system_subscription_messages/{system_subscription_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改',
                                'name' => 'system_subscription_messages.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/system_subscription_messages/{system_subscription_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改状态',
                                'name' => 'system_subscription_messages.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/system_subscription_messages/{system_subscription_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '详情',
                                'name' => 'system_subscription_messages.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/system_subscription_messages/{system_subscription_messages}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ]
                    ],[
                        'cn_name' => '提货点设置',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '提货点的列表',
                                'name' => 'sysStores.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/sysStores',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '提货点的详情',
                                'name' => 'sysStores.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/sysStores/{sysStores}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '提货点的添加',
                                'name' => 'sysStores.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/sysStores',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '提货点的删除',
                                'name' => 'sysStores.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/sysStores/{sysStores}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '提货点头部设置',
                                'name' => 'getHeader',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/getHeader',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改设置',
                                'name' => 'sysStores.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/sysStores/{systemStore}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '显示设置',
                                'name' => 'sysStores.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/sysStores/status',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ],
                    ],[
                        'cn_name' => '核销',
                        'name' => '',
                        'routename' => '',
                        'level' => 2,
                        'guard_name' => 'admin',
                        'children' => [
                            [
                                'cn_name' => '核销的列表',
                                'name' => 'SystemStoreStaffs.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/SystemStoreStaffs',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '核销的详情',
                                'name' => 'SystemStoreStaffs.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/SystemStoreStaffs/{SystemStoreStaffs}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '核销的添加',
                                'name' => 'SystemStoreStaffs.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/SystemStoreStaffs',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '核销的删除',
                                'name' => 'SystemStoreStaffs.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/SystemStoreStaffs/{SystemStoreStaffs}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '返回微信用户信息',
                                'name' => 'stores',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/stores',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '修改设置',
                                'name' => 'SystemStoreStaff.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/SystemStoreStaff/{systemStoreStaff}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '设置状态',
                                'name' => 'SystemStoreStaff.status',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/SystemStoreStaff/status',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '返回核销订单头部信息',
                                'name' => 'listHeader',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/listHeader',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '返回核销列表信息',
                                'name' => 'SystemStoreStaff.listInfo',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/listInfo',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '运费模板的列表',
                                'name' => 'freightTemplates.index',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/freightTemplates',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '运费模板的详情',
                                'name' => 'freightTemplates.show',
                                'mode' => 'GET',
                                'interfacepath' => '/admin/freightTemplates/{freightTemplates}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '运费模板的添加',
                                'name' => 'freightTemplates.store',
                                'mode' => 'POST',
                                'interfacepath' => '/admin/freightTemplates',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '模板修改',
                                'name' => 'freightTemplates.update',
                                'mode' => 'PUT',
                                'interfacepath' => '/admin/freightTemplates/{shippingTemplates}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ],[
                                'cn_name' => '模板删除',
                                'name' => 'freightTemplates.destroy',
                                'mode' => 'DELETE',
                                'interfacepath' => '/admin/freightTemplates/{shippingTemplates}',
                                'level' => 3,
                                'guard_name' => 'admin',
                            ]
                        ],
                    ]
                ],
            ],[
                'cn_name' => '应用管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                //'children' => []
            ],[
                'cn_name' => '维护管理',
                'name' => '',
                'routename' => '',
                'pid' => 0,
                'level' => 1,
                'guard_name' => 'admin',
                'children' => [
                    [
                    'cn_name' => '附件管理',
                    'name' => '',
                    'routename' => '',
                    'level' => 2,
                    'guard_name' => 'admin',
                    'children' => [
                        [
                            'cn_name' => '附件列表',
                            'name' => 'attachment',
                            'mode' => 'GET',
                            'interfacepath' => '/admin/attachment',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],[
                            'cn_name' => '附件添加',
                            'name' => 'attachment',
                            'mode' => 'POST',
                            'interfacepath' => '/admin/attachment/{attachment}',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],[
                            'cn_name' => '附件删除',
                            'name' => 'attachment',
                            'mode' => 'DELETE',
                            'interfacepath' => '/admin/attachment/{attachment}',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],
                    ]
                    ],[
                    'cn_name' => '开发配置',
                    'name' => '',
                    'routename' => '',
                    'level' => 2,
                     'guard_name' => 'admin',
                    //'children' => []
                    ],[
                    'cn_name' => '安全维护',
                    'name' => '',
                    'routename' => '',
                    'level' => 2,
                     'guard_name' => 'admin',
                    //'children' => []
                    ],[
                    'cn_name' => '物流公司',
                    'name' => '',
                    'routename' => '',
                    'level' => 2,
                    'guard_name' => 'admin',
                    'children' => [
                        [
                            'cn_name' => '物流公司的列表',
                            'name' => 'express.index',
                            'mode' => 'GET',
                            'interfacepath' => '/admin/express',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],[
                            'cn_name' => '物流公司的详情',
                            'name' => 'express.show',
                            'mode' => 'GET',
                            'interfacepath' => '/admin/express/{express}',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],[
                            'cn_name' => '物流公司的更改',
                            'name' => 'express.update',
                            'mode' => 'PUT',
                            'interfacepath' => '/admin/express/{express}',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ],[
                            'cn_name' => '快递公司的状态',
                            'name' => 'express.status',
                            'mode' => 'PUT',
                            'interfacepath' => '/admin/express/status/{express}',
                            'level' => 3,
                            'guard_name' => 'admin',
                        ]
                    ]
                    ],[
                    'cn_name' => '城市数据',
                    'name' => '',
                    'routename' => '',
                    'level' => 2,
                     'guard_name' => 'admin',
                    //'children' => []
                    ],[
                    'cn_name' => '对外接口',
                    'name' => '',
                    'routename' => '',
                    'level' => 2,
                    'guard_name' => 'admin',
                    //'children' => []
                    ]
                ]
            ],

        ];
        foreach ($permissions as $p){
            $l1_tmp = $p;
            unset($l1_tmp['children']);
            $l1_model = Permission::create($l1_tmp);

            foreach ($p['children'] as $l2){
                $l2_tmp = $l2;
                unset($l2_tmp['children']);
                $l2_tmp['pid'] =  $l1_model->id;
                $l2_model = Permission::create($l2_tmp);
                $l2_model->children()->createMany($l2['children']);

            }
        }

        //添加角色
        $role = Role::create(['name'=>'super','cn_name'=>'超级管理员','guard_name' => 'admin']);

        //为角色添加权限
        $role->givePermissionTo(Permission::all());

        $user =SystemAdmin::find(1)->first();

        $user->assignRole('super');

    }
}
